﻿using System.ComponentModel;
using System.Windows;

namespace DenisVuyka.Controls.PropertyGrid
{
  public delegate void PropertyDescriptorEventHandler(object sender, PropertyDescriptorEventArgs e);

  public class PropertyDescriptorEventArgs : RoutedEventArgs
  {
    public object Component { get; set; }
    public PropertyDescriptor Descriptor { get; set; }
    public bool Cancel { get; set; }

    public PropertyDescriptorEventArgs() : base() { }
    public PropertyDescriptorEventArgs(RoutedEvent routedEvent) : base(routedEvent) { }
    public PropertyDescriptorEventArgs(RoutedEvent routedEvent, object source) : base(routedEvent, source) { }
  }
}
